//
//  TouchView.m
//  03_UIResponder
//
//  Created by dllo on 16/7/18.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView
// 继承于UIReponder: AppDelegate UIView UIViewController
// 从后往前是响应的检测 从前往后是响应
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%@", self.nextResponder); // self.view
//    NSLog(@"%@", self.nextResponder.nextResponder); // viewController
//    NSLog(@"%@", self.nextResponder.nextResponder.nextResponder); // UIWindow
//    NSLog(@"%@", self.nextResponder.nextResponder.nextResponder.nextResponder); // application
//    NSLog(@"%@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder); // appDelegate
//    NSLog(@"%@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder); // nil



    [super touchesBegan:touches withEvent:event];
//    NSLog(@"%@------%s", [self class], __FUNCTION__);
}

- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%@------%s", NSStringFromClass([self class]), __FUNCTION__);
//
}
//
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%@------%s", [[self class] description], __FUNCTION__);
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
